(function($) {
	$.fn.repopover = function(message, event) {
		$.each(this, function(i, n) {
			var n = $(this);
			n.popover({
				placement : 'top',
				content : message,
				trigger : 'focus'
			}).on('hidden.bs.popover', function() {
				n.removeAttr('prompt');
			}).bind('click', function() {
				click();
			});
			function click() {
				if (n.attr('prompt') != null)
					event(n);
				else
					n.attr('prompt', 'true');
			}
		});
	};
})(jQuery);